import request from '@/utils/request'

export const list = 'user/list'

export function add (data) {
  return request({
    url: 'user/add',
    method: 'post',
    data
  })
}

export function del (ids) {
  return request({
    url: 'user/delete',
    method: 'delete',
    data: ids
  })
}

export function edit (data) {
  return request({
    url: 'user/update',
    method: 'put',
    data
  })
}

export default { list, add, edit, del }
